home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Softdisk Supreme
/
Softdisk Supreme.iso
/
pc
/
DSK Files
/
0-49
/
SD003b.dsk
/
KINETIC.ART.bas
< prev
next >
Wrap
BASIC Source File
|
2003-06-12
|
1KB
|
54 lines
5 HOME
10 DIM C(150)
11 DIM XO(150)
12 DIM XTWO(150)
13 DIM YO(150)
14 DIM YTWO(150)
20 MX = 279
30 MY = 191
35 VTAB 21: HTAB 1: PRINT "BY CLIFF, LARRY HEWITT - DECEMBER 1980"
40 VTAB 3: HTAB 8: PRINT "WELCOME TO KINETIC ART"
50 VTAB 10: HTAB 8: PRINT "TYPE A NUMBER (1-150)";
60 INPUT "";Z
70 IF Z <1 OR Z >150 THEN END
100 X1 = 0:X2 = 0:Y1 = 0:Y2 = 0:C1 = 0:C2 = 0
120 A = 1
130 HGR2
150 HCOLOR= 0
155 IF PEEK( -16384) >132 THEN POKE -16368,0: HGR2 : TEXT : HOME : GOTO 35
160 HPLOT XO(A),YO(A) TO XTWO(A),YTWO(A)
200 IF C1 = 0 THEN KOLR = 1 + INT( RND(0) *7): HCOLOR= KOLR:C1 = 5 *(1 + INT( RND(1) *10))
205 IF KOLR = 4 THEN KOLR = 7
210 IF C2 = 0 THEN GOSUB 900
220 OPX = X1 +OXD
230 IF OPX > = 0 AND OPX < = MX THEN 250
240 OPX = X1:OXD = -OXD
250 X1 = OPX
260 TPX = X2 +TX2
270 IF TPX > = 0 AND TPX < = MX THEN 290
280 TPX = X2:TXD = -TXD
290 X2 = TPX
300 IPY = Y1 +OYD
310 IF IPY > = 0 AND IPY < = MY THEN 330
320 IPY = Y1:OYD = -OYD
330 Y1 = IPY
340 IIPY = Y2 +TYD
350 IF IIPY > = 0 AND IIPY < = MY THEN 370
360 IIPY = Y2:TYD = -TYD
370 Y2 = IIPY
375 HCOLOR= KOLR
380 HPLOT X1,Y1 TO X2,Y2
390 C(A) = KOLR
400 XO(A) = X1:XTWO(A) = X2
410 YO(A) = Y1:YTWO(A) = Y2
420 A = A +1
425 IF A >Z THEN A = 1
430 C1 = C1 -1:C2 = C2 -1
440 GOTO 150
900 REM NEW STEP SIZES
910 OXD = INT( RND(2) *13) -6
920 OYD = INT( RND(3) *13) -6
930 TXD = INT( RND(4) *13) -6
940 TYD = INT( RND(5) *13) -6
950 C2 = 5 *(1 + INT( RND(6) *10))
960 RETURN